﻿@model GuiaGastronomica.Models.Restaurante

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Restaurante</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.CiudadId, "Ciudad")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CiudadId", String.Empty)
            @Html.ValidationMessageFor(model => model.CiudadId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ZonaId, "Zona")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ZonaId", String.Empty)
            @Html.ValidationMessageFor(model => model.ZonaId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Direccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telefono)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaApertura)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaApertura)
            @Html.ValidationMessageFor(model => model.FechaApertura)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Longitud)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Longitud)
            @Html.ValidationMessageFor(model => model.Longitud)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Latitud)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Latitud)
            @Html.ValidationMessageFor(model => model.Latitud)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactoNombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactoNombre)
            @Html.ValidationMessageFor(model => model.ContactoNombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactoEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactoEmail)
            @Html.ValidationMessageFor(model => model.ContactoEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HDiaInicio)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HDiaInicio)
            @Html.ValidationMessageFor(model => model.HDiaInicio)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HDiaFin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HDiaFin)
            @Html.ValidationMessageFor(model => model.HDiaFin)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HHoraInicio)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HHoraInicio)
            @Html.ValidationMessageFor(model => model.HHoraInicio)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HHoraFin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HHoraFin)
            @Html.ValidationMessageFor(model => model.HHoraFin)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
